package com.hardydou.data.service;

import com.hardydou.data.model.YdIcon;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * @author ：hardy
 * @description：
 * @date ：Created in 2021/1/31
 * @Copyright ：Hardydou.com
 */
public interface IYdIconServce {

    @Transactional
    void add(YdIcon icon);

    @Transactional
    void update(YdIcon icon);

    YdIcon findById(Long iconId);

    @Transactional
    void delete(Long iconId);

    List<YdIcon> list(Map params);

    @Transactional
    void deleteByIconId(long[] iconIds);
}
